package com.xcmg.manage.feign;

import com.xcmg.manage.entity.Staff;
import org.springframework.stereotype.Component;

@Component
public class EmployeeFeignServiceFallback implements EmployeeFeignService{
    @Override
    public Staff getStaff(int id) {

        return null;

    }

    @Override
    public int addStaff() {
        System.out.println("addStaff服务降级了");
        return 0;
    }

    @Override
    public void deleteStaffById(int id) {
        System.out.println("03服务降级了");

    }

    @Override
    public void updateStaffById(Staff staff) {
        System.out.println("04服务降级了");
    }

    @Override
    public String testSentinel() {
        return "服务降级";
    }
}
